Skip to content

Exclude {min, max} macros when using <functional>. #1524

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Closed
wants to merge 1 commit into from
Closed

Exclude {min, max} macros when using <functional>. #1524

wants to merge 1 commit into from

Conversation

Crazor
Copy link

@Crazor Crazor commented Jun 22, 2018

Those defines not only break <vector>, but <functional> as well.

Those defines not only break <vector>, but <functional> as well.
@Crazor
Copy link
Author

Crazor commented Jun 22, 2018

Why is this even redefined? Wouldn't it be better to just #include <algorithm>?

Edit: Maybe this is the way to go: https://github.com/esp8266/Arduino/blob/master/cores/esp8266/Arduino.h#L265

@me-no-dev
Copy link
Member

It's a remanence from AVR :) let's go with 8266 way ;) seems that they had the same issue and solved it after esp32 was created.

@yoursunny
Copy link
Contributor

let's go with 8266 way

#1783 implements this solution.
I've been fed up with this problem for several years.

@me-no-dev me-no-dev closed this Sep 17, 2018
@me-no-dev
Copy link
Member

implemented :)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants